home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2726 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1008 b   |  31 lines

  1. Path: news.lpr.carel.fi!usenet
  2. From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
  3. Newsgroups: comp.lang.c,comp.unix.misc,comp.unix.questions,harvard.comp.unix
  4. Subject: Re: Trap interrupts in C program
  5. Date: Tue, 23 Jan 1996 15:19:38 +0200
  6. Organization: Carelcomp Forest
  7. Message-ID: <3104E06A.861@cmt.lpr.mail.carel.fi>
  8. References: <4e1mos$8jn@decaxp.harvard.edu>
  9. NNTP-Posting-Host: renoir.cclahti.carel.fi
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Mailer: Mozilla 2.0b6a (WinNT; I)
  14.  
  15. Shaikh Sarmad wrote:
  16. > I want to write a C program that can should ignore all signals (except
  17. > the kill, of course). How do I incorporate that in my program. I mean is
  18. > there a "trap" command for C, like in shell scripts? And yes, the C
  19. > program would be running on an HP-UX system.
  20.  
  21. Look at your manuals (or use man) for functions called `signal┤, `sigaction┤ 
  22. etc. They're just what you're looking for.
  23.  
  24. Later,
  25. AriL
  26.  
  27. -- 
  28. All my opinions are mine and mine alone.
  29.